#include <cstdlib>
#include <iostream>
using namespace std;

int random_number()
{
    return rand() % 255;
}

int main(int argc, char* argv[])
{
    srand(time(0)); // If not called, the sequence of random numbers will always be the same

    int ten_random_numbers[10];
    for(int i = 0; i < 10 ; i++) {
        ten_random_numbers[i] = random_number();
    }

    // Print the array in forward to the user
    for(int i = 0; i < 10 ; i++) {
        cout << ten_random_numbers[i] << " ";
    }
    cout << endl;

    // Print the array backwards to the user
    for(int i = 9; i >= 0; i--) {
        cout << ten_random_numbers[i] << " ";
    }
    cout << endl;
 
    return 0;
}
